import request from "@/utils/request";

/**
 * 支付
 */
export function alipay(orderId, quotation) {
    return request.get(
        "/alipay/pay",
        {
            params: {
                outTradeNo: orderId,
                totalAmount: quotation,
                subject: "bg-print"
            }
        }
    );
}

/** 取消订单/同意退款 */
export function alipayReturn(orderId, traceNo, totalAmount) {
    return request.get(
        "/alipay/return",
        {
            params: {
                outTradeNo: orderId,
                traceNo: traceNo,
                totalAmount: totalAmount,
                subject: "bg-print"
            }
        }
    );
}